package com.woniuxy.hotel.user.service;

import java.util.Collection;
import com.woniuxy.hotel.user.pojo.User;

public interface UserService {
	public String findAccountByPhone(String phone);

	public User findUserByAccount(String account);
	
	public User selectByPrimaryKey(int id);

	public User findUserByPhone(String phone);

	public void updatePhone(String currentPhone, String newPhone);

	public Collection<String> showUserRoles(String account);

	public String rsPassword(String account, String code, String password);

	public String getLoginSMS(String phone);

	public String loginByPhone(String phone, String code);

	public String login(User user);
}
